package com.lakeworks.service.impl;

import com.lakeworks.domain.status.PostQc;
import com.lakeworks.mapper.PostQcMapper;
import com.lakeworks.service.IPostQcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 质检记录Service业务层处理
 *
 * @author lake
 * @date 2023-02-23
 */
@Service
public class PostQcServiceImpl implements IPostQcService {
    @Autowired
    private PostQcMapper postQcMapper;

    /**
     * 查询质检记录
     *
     * @param id 质检记录主键
     * @return 质检记录
     */
    @Override
    public PostQc selectPostQcById(Long id) {
        return postQcMapper.selectPostQcById(id);
    }

    /**
     * 查询质检记录列表
     *
     * @param postQc 质检记录
     * @return 质检记录
     */
    @Override
    public List<PostQc> selectPostQcList(PostQc postQc) {
        return postQcMapper.selectPostQcList(postQc);
    }

    /**
     * 新增质检记录
     *
     * @param postQc 质检记录
     * @return 结果
     */
    @Override
    public int insertPostQc(PostQc postQc) {
        return postQcMapper.insertPostQc(postQc);
    }

    /**
     * 修改质检记录
     *
     * @param postQc 质检记录
     * @return 结果
     */
    @Override
    public int updatePostQc(PostQc postQc) {
        return postQcMapper.updatePostQc(postQc);
    }

    /**
     * 批量删除质检记录
     *
     * @param ids 需要删除的质检记录主键
     * @return 结果
     */
    @Override
    public int deletePostQcByIds(Long[] ids) {
        return postQcMapper.deletePostQcByIds(ids);
    }
}
